projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580fab8
)
fix clazy detected 'use isEmpty() instead'
author
tsteven4
<tsteven4@gmail.com>
Tue, 13 Nov 2018 15:53:34 +0000
(08:53 -0700)
committer
tsteven4
<tsteven4@gmail.com>
Tue, 13 Nov 2018 15:53:34 +0000
(08:53 -0700)
this is from -Wclazy-isempty-vs-count
main.cc
patch
|
blob
|
history
diff --git
a/main.cc
b/main.cc
index e5b76857f3528afeb1466652e474f89d02c6b853..0c56985fa6108368c168162d579c621f75808bab 100644
(file)
--- a/
main.cc
+++ b/
main.cc
@@
-598,7
+598,7
@@
main(int argc, char* argv[])
}
if (qargs.size() > 2) {
fatal("Extra arguments on command line\n");
- } else if (
qargs.size(
) && ivecs) {
+ } else if (
(!qargs.isEmpty()
) && ivecs) {
did_something = 1;
/* simulates the default behaviour of waypoints */
if (doing_nothing) {
@@
-632,7
+632,7
@@
main(int argc, char* argv[])
cet_convert_deinit();
}
- } else if (
qargs.size
()) {
+ } else if (
!qargs.isEmpty
()) {
usage(prog_name,0);
exit(0);
}